Delete the query for the query partition identified by
{partition-number}
from the database identified by {id|name}
.
URL Parameters | |
---|---|
format | The format of the data in the response body.
Allowed values: html , json , or xml . Use this
parameter to override the Accept header. |
Request Headers | |
---|---|
Accept | The expected MIME type of the response. If the
format parameter is present, it takes precedence over the Accept header.
Supported values: application/xml , application/json .
|
MarkLogic server returns status code 204 (No Content). A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
$ curl --anyauth --user user:password -X DELETE -i \ http://localhost:8002/manage/v2/databases/example-db/partition-queries/2 ==> The query partition, number 2, is deleted.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.